import service from '@/utils/request'

// @Tags ArchiveLocation
// @Summary 创建档案存放位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveLocation true "创建档案存放位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /archiveLocation/createArchiveLocation [post]
export const createArchiveLocation = (data) => {
  return service({
    url: '/archiveLocation/createArchiveLocation',
    method: 'post',
    data
  })
}

// @Tags ArchiveLocation
// @Summary 删除档案存放位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveLocation true "删除档案存放位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /archiveLocation/deleteArchiveLocation [delete]
export const deleteArchiveLocation = (params) => {
  return service({
    url: '/archiveLocation/deleteArchiveLocation',
    method: 'delete',
    params
  })
}

// @Tags ArchiveLocation
// @Summary 批量删除档案存放位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除档案存放位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /archiveLocation/deleteArchiveLocation [delete]
export const deleteArchiveLocationByIds = (params) => {
  return service({
    url: '/archiveLocation/deleteArchiveLocationByIds',
    method: 'delete',
    params
  })
}

// @Tags ArchiveLocation
// @Summary 更新档案存放位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveLocation true "更新档案存放位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /archiveLocation/updateArchiveLocation [put]
export const updateArchiveLocation = (data) => {
  return service({
    url: '/archiveLocation/updateArchiveLocation',
    method: 'put',
    data
  })
}

// @Tags ArchiveLocation
// @Summary 用id查询档案存放位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ArchiveLocation true "用id查询档案存放位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /archiveLocation/findArchiveLocation [get]
export const findArchiveLocation = (params) => {
  return service({
    url: '/archiveLocation/findArchiveLocation',
    method: 'get',
    params
  })
}

// @Tags ArchiveLocation
// @Summary 分页获取档案存放位置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取档案存放位置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /archiveLocation/getArchiveLocationList [get]
export const getArchiveLocationList = (params) => {
  return service({
    url: '/archiveLocation/getArchiveLocationList',
    method: 'get',
    params
  })
}
